package cn.tedu;

import cn.tedu.ba05.SomeService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest05 {
    @Test
    public void test01(){
        String context="applicationContext.xml";
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext(context);
        SomeService bean = (SomeService) ac.getBean("SomeServiceImpl");
        bean.doSome("刘杰", 21);
        String proxy = bean.getClass().getName();
        System.out.println("代理对象："+proxy);
    }

}
